<div class="cont_tit">
	<div class="cont_tit_1">
		<span class="sortH">» <?php echo $pageTitle; ?></span>
		<div class="clear"><?php echo (isset($pageLink)?$pageLink:'');?></div>
	</div>
</div>
<form method="post" id="myfrom">
<table class="zz" cellpadding="3" cellspacing="1" border="0">
<?php
if(isset($errors))
{
	echo '<tr><td colspan="2">'.$errors.'</td></tr>';
}
?>
<tr>
	<td>上级</td>
	<td class="tal">
		<select name="data[fparent_id]">
			<option value="0">根</option>
			<?php
			echo $function_select;
			?>
		</select>
	</td>
</tr>
<tr>
	<td>英文名</td>
	<td class="tal"><input type="text" name="data[fname_en]" id="fname_en" /></td>
</tr>
<tr>
	<td>中文名</td>
	<td class="tal"><input type="text" name="data[fname_cn]" id="fname_cn" /></td>
</tr>
<tr>
	<td>可见度</td>
	<td class="tal">
		<select name="data[fis_show]">
			<option value="1">可见</option>
			<option value="0">不可见</option>
		</select>
	</td>
</tr>
<tr>
	<td>排序</td>
	<td class="tal"><input type="text" name="data[forder_num]" size="5" value="0" /></td>
</tr>
<tr>
	<td colspan="2" class="bj-color02">
		<input type="submit" value="添加" />
	</td>
</tr>
</table>
</form>

<script type="text/javascript">
<!--
$(document).ready(function(){
	$('#myform').submit(function(){
		if($.trim($('#fname_en').val())=='')
		{
			alert('请输入英文名!');
			$('#fname_en').focus();
			return false;
		}
		if($.trim($('#fname_cn').val())=='')
		{
			alert('请输入中文名!');
			$('#fname_cn').focus();
			return false;
		}
	});
});
//-->
</script>